package com.xuxueli.commontdemo.util;

/**
 * 开放接口错误码枚举
 */
public enum OpenApiStatusCodeEnum {

    API_INVOKE_SUCCESS("10001", "请求成功","请求成功" ),
    API_SQL_EXCEPTION("10006", "业务失败", "查询语句执行出错"),
    API_SQL_NOT_SUPPORT_COUNT("10012", "SQL解析错误", "SQL不能为空"),
    API_SQL_SQLSERVER_ORDER_BY_NOT_FOUND("10013", "数据库错误", "SQLSERVER:外层SQL缺失排序条件"),
    API_CONNECTION_FAILED("10015", "数据库连接失败", "数据库连接失败，请检查连接配置");

    OpenApiStatusCodeEnum(String statusCode, String statusName, String message) {
        this.statusCode = statusCode;
        this.statusName = statusName;
        this.message = message;
    }

    private final String statusCode;

    private final String statusName;

    private final String message;

    public String getStatusCode() {
        return statusCode;
    }

    public String getMessage() {
        return message;
    }

}
